<? if(!defined('IN_TIPASK')) exit('Access Denied'); ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"><? $user=$this->user; $setting=$this->setting; ?><html xmlns="http://www.w3.org/1999/xhtml">

<head>
<title>Tipask's Control Panel</title>
<meta http-equiv="Content-Type" content="text/html; charset=<?=TIPASK_CHARSET?>">
<link media="all" type="text/css" href="css/common/admin/admincp.css" rel="stylesheet" />
<script src="js/admin.js" type="text/javascript"></script>
</head>

<body>

<div id="append">
</div>
<div class="container"><? if(isset($message)) { $type=isset($type)?$type:'correctmsg';  ?><div class="<?=$type?>"><p><?=$message?></p></div><? } ?><h3>公告列表 <a href="index.php?admin_note/add<?=$setting['seo_suffix']?>" class="sgbtn">添加公告</a> </h3>
<div class="mainbox">
<form onsubmit="return confirm('该操作不可恢复，您确认要删除这些公告吗？');"  action="index.php?admin_note/remove<?=$setting['seo_suffix']?>"  method=post>
<table class="datalist fixwidth">
<tr>
<th><input class="checkbox" id="chkall" onclick="checkall('delete[]')" type="checkbox" name="chkall"><label for="chkall">删除</label></th>
<th>公告标题</th>
<th>更新人</th>
<th>更新时间</th>
<th>编辑</th>
</tr>
<? if(is_array($notelist)) { foreach($notelist as $note) { ?>
<tr>
<td width="20" class="option"><input class="checkbox" type="checkbox" value="<?=$note['id']?>" name="delete[]"></td>
<td width="300"><strong><?=$note['title']?></strong></td>
<td width="100"><?=$note['author']?></td>
<td width="200"><?=$note['time']?></td>
<td><a href="index.php?admin_note/edit/<?=$note['id']?><?=$setting['seo_suffix']?>">编辑</a></td>
</tr>
<? } } ?>
</table>

</div>
<div class="opt"><input type="submit" name="submit" value=" 提 交 " tabindex="3" class="btn"></div>
</form>
</div>

</body>

</html>
